<a id="xwdl" href="{:cmf_plugin_url('WxLogin://Index/qrcode')}" class="weixin">微信登录</a>

<script>
    if ("{:cmf_is_mobile()}") {
        $("#xwdl").attr("href", "{:cmf_plugin_url('WxLogin://Index/h5')}")
    }
</script>